<a href="add.php">Add entry</a><br>
<br>

<?php
/// In order to use this script freely
/// you must leave the following copyright
/// information in this file:
/// Copyright 2012 www.turningturnip.co.uk
/// All rights reserved.

include("connect.php");

$result = mysql_query("SELECT * FROM mst_user ");
$num = mysql_num_rows ($result);

if ($num > 0 ) {
$i=0;
while ($i < $num) {

$id = stripslashes(mysql_result($result,$i,"id"));
	$user_id = stripslashes(mysql_result($result,$i,"user_id"));
		$login_id = stripslashes(mysql_result($result,$i,"login_id"));
		$nama = stripslashes(mysql_result($result,$i,"nama"));
		$alamat = stripslashes(mysql_result($result,$i,"alamat"));
		$kota = stripslashes(mysql_result($result,$i,"kota"));
		$negara = stripslashes(mysql_result($result,$i,"negara"));
		$kode_pos = stripslashes(mysql_result($result,$i,"kode_pos"));
		$no_telp = stripslashes(mysql_result($result,$i,"no_telp"));
		$no_hp = stripslashes(mysql_result($result,$i,"no_hp"));
		$email = stripslashes(mysql_result($result,$i,"email"));
		$password = stripslashes(mysql_result($result,$i,"password"));
		
	$row .= '<tr>
	<td><a href="update.php?id='.$id.'">'.$user_id.'</a></td>
	<td><a href="delete.php?id='.$id.'">Delete</a></td>
	</tr>';
	
++$i; }} else { $row = '<tr><td colspan="2" align="center">Nothing found</td></tr>'; }

mysql_close();
?>
<table border="1" cellpadding="3" cellspacing="0"><? echo $row ?>
</table>